//
//  SHTableViewCell.h
//  youjian03
//
//  Created by 常琼 on 14/10/20.
//  Copyright (c) 2014年 com.shouhuobao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SHMyPostModel.h"

@protocol SHCellDelegate <NSObject>

///评价传参:订单id
-(void)pingWithOrderId:(NSString *)orderId andRow:(int)row;
//跟踪传惨:运单号
-(void)genWithCodeNo:(NSString *)codeNo andTypeNo:(NSString *)typeNo;

@end


@interface SHTableViewCell : UITableViewCell

@property(nonatomic,strong) SHMyPostModel *myPostModel;
@property(nonatomic,strong) NSString *typeNo;//快递单位

@property(nonatomic,assign ) int row;//这个是在tableview中的位置

+(instancetype)cellWithTableView:(UITableView *)tableView;

- (IBAction)gen2:(UIButton *)sender;

@property (weak, nonatomic) IBOutlet UIButton *ping;//评论视图
@property(nonatomic,copy) NSString *orderid; //订单号
@property(nonatomic,copy) NSString *iscomment;//是否评论(0 no ,1 yes)
@property (weak, nonatomic) IBOutlet UIImageView *headview;//头像地址
@property (weak, nonatomic) IBOutlet UILabel *name;//快递员姓名
@property (weak, nonatomic) IBOutlet UILabel *postname;//公司名称
@property (weak, nonatomic) IBOutlet UIImageView *star;//星级
@property (weak, nonatomic) IBOutlet UILabel *time;//时间

@property(nonatomic,copy) NSString *voiceurl;


//用于发送评价参数的代理
@property(nonatomic ,weak) id <SHCellDelegate>  delegate;



@end
